<?php
/**
 * Created by PhpStorm.
 * User: wudiying
 * Date: 2020/2/18
 * Time: 上午12:59
 */

/**
 * swoole之DNS查询
 */


swoole_async_dns_lookup('www.baidu.com', function ($host, $ip) {
    echo 'host=' . $host . ' ip=' . $ip;
});

